// 例子
export const useAppStore2 = defineStore("appStore", {
    state: (): AppStoreType => ({
        count: 0,
    }),
    actions: {
        addCar(item: any) {}
    },
	persist: {
		enabled: true, // 开启持久化
		strategies: [
			{
				key: "appStore", // 持久化的key
				storage: window?.localStorage, // 持久化的方式，可以选择sessionStorage
			},
		],
	},
});